feat: add Kode-Agent provider support#391
Closed
CrazyBoyM wants to merge 2 commits intoNVIDIA:mainfrom
Closed
Conversation
Add support for Kode (https://github.com/shareAI-lab/Kode-Agent), an open-source AI-powered terminal assistant for intelligent code development. Kode is a multi-model coding agent that supports both Anthropic and OpenAI APIs. Changes: - New provider plugin (kode.rs) with ANTHROPIC_API_KEY and OPENAI_API_KEY credential discovery - CLI enum variant for --type kode - Provider type normalization with aliases: kode, kwa, kd - Network policy for kode_agent allowing api.anthropic.com and api.openai.com access - Unit tests for credential discovery and alias normalization
- Remove kwa/kd aliases, register only the kode command - Simplify network policy binaries to kode and node only - Add Kode to supported-agents and default-policy docs
|
Thank you for your interest in contributing to OpenShell, @CrazyBoyM. This project uses a vouch system for first-time contributors. Before submitting a pull request, you need to be vouched by a maintainer. To get vouched:
See CONTRIBUTING.md for details. |
|
Thank you for your submission! We ask that you sign our Developer Certificate of Origin before we can accept your contribution. You can sign the DCO by adding a comment below using this text: I have read the DCO document and I hereby sign the DCO. You can retrigger this bot by commenting recheck in this Pull Request. Posted by the DCO Assistant Lite bot. |
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add Kode as a first-class provider in OpenShell. Kode is an open-source multi-model AI coding agent supporting both Anthropic and OpenAI APIs through a unified terminal interface.
Related Issue
N/A — new provider integration.
Changes
crates/openshell-providers/src/providers/kode.rs: New provider plugin withANTHROPIC_API_KEYandOPENAI_API_KEYcredential discoverycrates/openshell-providers/src/providers/mod.rs: Register kode modulecrates/openshell-providers/src/lib.rs: Register inProviderRegistry, addnormalize_provider_type("kode"), add unit testscrates/openshell-cli/src/main.rs: AddKodevariant toCliProviderTypeenumcrates/openshell-sandbox/testdata/sandbox-policy.yaml: Addkode_agentnetwork policydocs/about/supported-agents.md: Add Kode to supported agents tabledocs/reference/default-policy.md: Add Kode to default policy compatibility matrixCompanion PR: NVIDIA/OpenShell-Community#43 (base image installation + production policy)
Testing
normalize_provider_type("kode")mise run pre-commitpassesChecklist